package cn.com.lyj6851.modules.user.service;

import cn.com.lyj6851.common.service.BaseService;
import cn.com.lyj6851.modules.user.domain.YdyUserLevel;

public interface YdyUserLevelService extends BaseService<YdyUserLevel> {


    /**
     * 检查是否能成为会员
     * @param uid 用户id
     */
    boolean setLevelComplete(Long uid);

    //UserLevelInfoDto getUserLevelInfo(int id);

    /**
     * 获取当前用户会员等级返回当前用户等级
     * @param uid uid
     * @param grade 用户级别
     * @return YdyUserLevel
     */
    YdyUserLevel getUserLevel(Long uid, Integer grade);


}
